package payroll.trans;

import payroll.classfication.CommissionedClassification;
import payroll.classfication.PaymentClassfication;

public class AddCommissionedEmployeeTransaction extends AddEmployeeTransation {

    private double salary;
    private double commissionRate;

    public AddCommissionedEmployeeTransaction(int empId, String name, String address, double salary,
            double commissionRate) {
        super(empId, name, address);
        this.salary = salary;
        this.commissionRate = commissionRate;}

        
    @Override
    protected PaymentClassfication getPaymentClassification() {
        return new CommissionedClassification(salary, commissionRate);

    }

}
